import {
  $get,
  $post
} from '../utils/request'

// 统计店铺评分和物流评分
export const SHOP_EVALUATION_COUNT = shopId =>
  $get('/store-platform/assess/assessCount', {
    shopId
  })

// 统计收藏用户人数
export const SHOP_COLLECTION_COUNT = shopId =>
  $get('/store-platform/collect/countByShopIdApi', {
    shopId
  })

// 商铺营业额和订单量增幅统计
export const SHOP_SALES_COUNT = params =>
  $post('/store-platform/countAnalyse/countSaleByShopApi', params)

// 店铺每天订单统计 state=1
export const SHOP_SALES_COUNT_DAY = params =>
  $post('/store-platform/countAnalyse/countDailySaleByShopApi', params)

// 店铺每月订单统计
export const SHOP_SALES_COUNT_MONTH = params =>
  $post('/store-platform/countAnalyse/countMonthlySaleByShopApi', params)

// 统计返还金额(全返模式)
export const SHOP_RETURN_PENSION_COUNT = params =>
  $post('/store-platform/pensionReturn/findTotalReturnAmount', params)

// 每月返佣统计
export const COUNT_MONTHLY_REBATE_API_MONTH = params =>
  $post('/store-platform/countAnalyse/countMonthlyRebateApi', params)

// 每天返佣统计 state=1 返佣类型:1:养老金返佣;2:养老卡返佣;3:跨店返佣;4:全返返佣
export const COUNT_MONTHLY_REBATE_API_DAY = params =>
  $post('/store-platform/countAnalyse/countDailyRebateApi', params)

// 查询店铺推荐数据汇总(20200223)
export const NEW_SHARE_DATA_COUNT = shopId =>
  $get('/store-platform/shop/shareDataCount', {
    shopId
  })

// 查询店铺推荐数据汇总(20200302李正的接口有个空格)
export const NEW_NEW_SHARE_DATA_COUNT = shopId =>
  $get('/store-platform/shop/ shareDataCount', {
    shopId
  })

// 会员管理-统计(20200223)
export const NEW_CUSTOMER_TOTAL = params =>
  $post('/store-platform/customer/total', params)
